<%@ page language="java" contentType="text/html; charset=utf-8"
    pageEncoding="utf-8"%>
     <%@ taglib prefix="s" uri="/struts-tags" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<title>Insert title here</title>
<%String path = request.getContextPath();
String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";%>
<link href="<%=basePath%>/css/common.css" rel="stylesheet" type="text/css"/>

</head>
<body>
<a href="editUserType.jsp"><img width="50px" height="50px" src="<%=basePath%>/images/add.jpg" title="新增类型"/></a>
 <TABLE class=gridView style="WIDTH: 50%; BORDER-COLLAPSE: collapse" cellSpacing=0 rules=all border=1 align="center">
        <TBODY>
              	<TR>
                  <TH class=gridViewHeader1 style="WIDTH: 50px" scope=col>&nbsp;</TH>
                  <TH class=gridViewHeader1 scope=col>用户类型</TH>
                  <TH class=gridViewHeader1 scope=col>操作</TH>
                </TR>
                
                <s:iterator value="#request.userTypes">
                <tr>
                	<TD class=gridViewItem><img src="<%=basePath%>/images/bg_users.gif"></TD>
                	<TD class=gridViewItem><s:property value="value"/></TD>
                	<td class=gridViewItem><A class=cmdField onclick="return confirm('确定要删除吗？');" href="/bookDeviceSys/user/user!deleteUserType.action?user.type=${key}"><img width="20px" height="20px" src="<%=basePath%>/images/delete.png" title="删除"></A></td>
                </tr>
                
    			</s:iterator>
    	</TBODY>
 </TABLE>
 

</body>
</html>